<script type="text/javascript">
/* <![CDATA[ */
	function setSubmitDisplay(shouldShow)
	{
		var submitSpan = document.getElementById('register_submit');
		var noSubmitSpan = document.getElementById('register_nosubmit');
		
		switch (shouldShow)
		{
			case true:
				submitSpan.style.display = 'block';
				noSubmitSpan.style.display = 'none';
				break;
			
			default:
				submitSpan.style.display = 'none';
				noSubmitSpan.style.display = 'block';
				break;
		}
	}
/* ]]> */
</script>
<div class="generalBox">
	<h2>Register to view your Library account details</h2>
	<form id="register" name="register" method="post" action="register.php">
		<label>
			<p><a href="http://libraryonline.leedsmet.ac.uk/pages/services/passwords_and_pins" target="_blank">Library ID (from your Campus Card):</a></p>
			<p><input type="text" name="library_id" id="library_id" class="inputText" value="Enter your Library ID" onfocus="document.getElementById('library_id').value = '';" /></p>
		</label>
		<label>
			<p><a href="http://libraryonline.leedsmet.ac.uk/pages/services/passwords_and_pins" target="_blank">Library PIN (has been sent to your student email):</a></p>
			<p><input type="password" name="pin" id="pin" class="inputPassword" value="" onfocus="document.getElementById('pin').setValue('');" size="4" maxlength="4" /></p>
		</label>
		<input name="facebook_id" value="{{FACEBOOK_ID}}" type="hidden">
		<p>
			Please read and accept the
			<a href="terms.php" target="_blank" onclick="NewWin=window.open(this.href,'NewWin','resizable=yes,scrollbars=yes,toolbar=no,location=no,directories=no,status=yes,menubar=no,fullscreen=no,titlebar=no,height=300,width=500');return false;">terms and conditions</a>
			and also check you are logged in to Facebook with your account.
		</p>
		<p>
			<label>
				<input type="radio" name="terms" value="1" onclick="setSubmitDisplay(true);" />
				Accept
			</label>
			<label>
				<input type="radio" name="terms" value="0" checked="checked" onclick="setSubmitDisplay(false);" />
				Decline
			</label>
		</p>
		<p id="register_nosubmit" class="importantText">Please accept the terms and conditions to continue registration.</p>
		<p id="register_submit" style="display:none;"><input class="inputSubmit" value="Register" type="submit" name="submit"></p>
	</form>
</div>